#pragma once

#include "Timer_v1.h"

#include <atomic>
#include <thread>
#include <condition_variable>

namespace LH
{
	// 定时器线程，负责执行定时任务
	class TimerThread final : public Timer
	{
	public:
		TimerThread();
		~TimerThread(); 

	protected:
		void run();
	private: 
		std::thread m_thread;
		std::atomic<bool> m_quit{true};
	};

}// namespace LH
